package com.ling.sbbyyds.entity.news.table;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * @Description: 聊天室聊天内容
 * @author: ling
 * @date: 2023年02月12日
 */

@Data
@Accessors(chain = true)
@Table(name = "sbb_news_chat_room")
public class NewsChatRoom {
    @Id
    @GeneratedValue(generator = "JDBC",strategy = GenerationType.AUTO)
    private Long id;

    @ApiModelProperty("聊天室名称")
    private String chatRoomName;

    @ApiModelProperty("聊天室管理员")
    private Long chatRootUserId;

    @ApiModelProperty("聊天室类型(私聊:cpr)")
    private String chatRoomType;

    @ApiModelProperty("聊天室头像")
    private String chatImagePath;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createDate;

    @ApiModelProperty("是否删除")
    @TableField(fill = FieldFill.INSERT)
    private Integer isDelete;
}
